﻿using System;
using System.Collections.Generic;
using System.Text;

namespace He.Web.UI
{
    public class PlugHelper
    {
        /// <summary>
        /// 指定插件是否开启
        /// </summary>
        /// <param name="val"></param>
        /// <param name="lang"></param>
        /// <returns></returns>
        public static bool IsShowPlug(string val, string lang)
        {
            List<Model.plug> pluglst = new BLL.config().LoadConfig<List<Model.plug>>("~/config/plug.config");
            foreach (Model.plug item in pluglst)
            {
                if (item.Value == val & item.Lang == lang)
                {
                    return item.IsShow;
                }
            }
            return false;
        }
    }
}
